import request from '@/utils/request'

export interface User {
  id: number
  username: string
  nickname: string
  email: string
  phone: string
}

// 定义响应数据结构
export interface UserListResponse {
  list: User[]
  total: number
}

// 用户列表
export function getList() {
  return request<UserListResponse>({
    url: '/user/list',
    method: 'get',
  })
}
